<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
	<title>充值</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=no, maximum-scale=1.0" />
	<meta content="yes" name="apple-mobile-web-app-capable" />
	<meta content="black" name="apple-mobile-web-app-status-bar-style" />
	<meta name="msapplication-tap-highlinght" content="no" />
	<script type="text/javascript" src="/static/js/jquery190.js"></script>
</head>
<style type="text/css">
	html, body, div, span, applet, object, iframe,	h1, h2, h3, h4, h5, h6, p, blockquote, pre,	a, abbr, acronym, address, big, cite, code,	del, dfn, em, img, ins, kbd, q, s, samp,small, strike, strong, sub, sup, tt, var,b, u, i, center,dl, dt, dd, ol, ul, li,fieldset, form, label, legend,table, caption, tbody, tfoot, thead, tr, th, td,article, aside, canvas, details, embed,figure, figcaption, footer, header, hgroup,menu, nav, output, ruby, section, summary,time, mark, audio, video {
	    margin: 0;padding: 0;border: 0;font-size: 100%;font: inherit;font-family: arial,微软雅黑;vertical-align: baseline;-webkit-tap-highlight-color:rgba(0,0,0,0);
	}
	input, select, textarea {
	    font-size: 100%; outline: none; border: none; background: none;
	}
	.top{margin:0 auto;}
	.main{margin:0 auto;width: 40vw; padding:9.1vw 0 0 23vw;}
	.mentDis{font-size: 5.8vw;font-weight:bold;}
	.money{font-size: 10vw;}
	.z-pay{width: 93vw;height: 18vw ;margin:2vw auto; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd;line-height: 25vw; background: #F8F8FF;}
	.left{float: left;font-size: 4.5vw;color:#A9A9A9;font-weight:bold;}
	.right{float: right;font-size: 4.5vw;font-weight:bold;}
	.pay_btn{background: #2ab038;border: 1px solid #2ab038; margin:12vw auto;display: block; width:93vw;-webkit-box-sizing: border-box;height:13vw;line-height:13vw;text-align: center;
    color: #fff!important;border-radius: 20px;font-size: 5vw;text-decoration:none;}
	</style>
<script type="text/javascript">
	//调用微信JS api 支付
	function jsApiCall()
	{
		WeixinJSBridge.invoke(
				'getBrandWCPayRequest',
				{$jsApiParameters},
		function(res){
			WeixinJSBridge.log(res.err_msg);
			if(res.err_msg == "get_brand_wcpay_request:ok"){
				window.location.href={$urlsuccess};
			}else{
				alert(支付失败);
				window.location.href={$urlfail};

			}
		}
	);
	}

	function callpay()
	{
		if (typeof WeixinJSBridge == "undefined"){
			if( document.addEventListener ){
				document.addEventListener('WeixinJSBridgeReady', jsApiCall, false);
			}else if (document.attachEvent){
				document.attachEvent('WeixinJSBridgeReady', jsApiCall);
				document.attachEvent('onWeixinJSBridgeReady', jsApiCall);
			}
		}else{
			jsApiCall();
		}
	}
</script>
<body>
	<div class="top">
		<div class="main">
			<span class="mentDis">{$diamond}颗钻石</span><br/>
			<span class="money">￥{$money}</span><br/>
		</div>
		<div class="z-pay">
			<span class="left">收款方</span>
			<span class="right">木虱游戏</span>
		</div>
		<div>
			<a href="#" class="pay_btn" onclick="callpay()">立即支付</a>
		</div>
	</div>
</body>
</html>